<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 * 可扩展的文档类型 服务
 */
class Doc_type_service extends MY_Service {

    public $type = array('default' => array('普通文章', '发布文章', true), 'image' => array('图集文章', '发起图集', 'allow_add_image'), //'2' => array('悬赏帖', '发起悬赏', true),
        //'3' => array('商品帖', '发布商品', true),
        //'4' => array('辩论帖', '发起辩论')
    );

    public function __construct() {
        parent::__construct();
        log_message('debug', 'Doc_type_service Service Class Initialized');
    }

    public function get_type() {
        return $this->type;
    }

    public function has($special) {
        return isset($this->type[$special]);
    }

    public function get_name($special) {
        return $this->type[$special][0];
    }
}

/* End of file Doc_type_service.php */
/* Location: ./application/services/doc/Doc_type_service.php */
